package com.example.bili.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (History)实体类
 *
 * @author makejava
 * @since 2025-02-20 15:49:37
 */
public class History implements Serializable {
    private static final long serialVersionUID = 275069543840088942L;
    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 动态id
     */
    private Integer trendid;
    /**
     * 用户id
     */
    private Integer userid;
    /**
     * 播放时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date historytime;

    //辅助
    private String trUrl;
    private String title;
    private String upName;
    private String comRateTime;


    public String getTrUrl() {
        return trUrl;
    }

    public void setTrUrl(String trUrl) {
        this.trUrl = trUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUpName() {
        return upName;
    }

    public void setUpName(String upName) {
        this.upName = upName;
    }

    public String getComRateTime() {
        return comRateTime;
    }

    public void setComRateTime(String comRateTime) {
        this.comRateTime = comRateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTrendid() {
        return trendid;
    }

    public void setTrendid(Integer trendid) {
        this.trendid = trendid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Date getHistorytime() {
        return historytime;
    }

    public void setHistorytime(Date historytime) {
        this.historytime = historytime;
    }

}

